package com.jml.AOP004.责任链通知005.interceptor.impl;

import com.jml.AOP004.责任链通知005.interceptor.MethodInterceptor;
import com.jml.AOP004.责任链通知005.invocation.MethodInvocation;


public class BeforMethodInterceptor implements MethodInterceptor {
    
    @Override
    public void invoke(MethodInvocation methodInvocation) throws Exception {
        System.out.println(">>>>前置通知<<<<");
        // 执行我们的目标方法
        methodInvocation.process();// 递归调用
    }
}
